package com.yugao.fintech.antelope.mps.api.model.content.template;

import com.yugao.fintech.antelope.mps.api.constatnts.ChannelTypeEnum;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 模板参数

 */
@Getter
@Setter
@NoArgsConstructor
public class TemplateVarData {
    private String key;
    private Object value;
    /**
     * 字段的描述
     */
    private String desc;

    /**
     * 变量颜色, {@link ChannelTypeEnum} 为如下生效
     * @see ChannelTypeEnum#WX_MP
     * @see ChannelTypeEnum#WX_MINI_APP
     */
    private String color;

    public TemplateVarData(String key, Object value, String color) {
        this.key = key;
        this.value = value;
        this.color = color;
    }
}
